import request from '@/utils/request'

// 查询产线工位报工单列表
export function listOrderInfoBg(query) {
  return request({
    url: '/procontrol/orderInfoBg/list',
    method: 'get',
    params: query
  })
}

// 查询产线工位报工单详细
export function getOrderInfoBg(id) {
  return request({
    url: '/procontrol/orderInfoBg/' + id,
    method: 'get'
  })
}

// 新增产线工位报工单
export function addOrderInfoBg(data) {
  return request({
    url: '/procontrol/orderInfoBg',
    method: 'post',
    data: data
  })
}

// 修改产线工位报工单
export function updateOrderInfoBg(data) {
  return request({
    url: '/procontrol/orderInfoBg',
    method: 'put',
    data: data
  })
}

// 删除产线工位报工单
export function delOrderInfoBg(id) {
  return request({
    url: '/procontrol/orderInfoBg/' + id,
    method: 'delete'
  })
}
